<!--<?php
require_once template('header'); 
print <<<EOT
<!--右边开始-->
<script type="Text/Javascript" language="JavaScript">
function add_navi(key)
{
    var nav = new Object;
<!--
EOT;
foreach ($nav_system as $key=>$val){
print <<<EOT
-->	
        nav[$key] = new Array();
        nav[$key][0] = '$val[0]';
        nav[$key][1] = '$val[1]';
<!--
EOT;
} print <<<EOT
-->
        if (key != '--'){
        document.getElementById('title').value = nav[key][0];
        document.getElementById('alt').value = nav[key][0];
        document.getElementById('link').value = nav[key][1];
        document.getElementById('nav_type').value = 1;
    }
}
</script>

<div id="right">
	<form enctype="multipart/form-data" name="mvmmall" action="" method="post" onsubmit="javascript:return nav()">
	<input type="hidden" name="setp" value="1"/>
	<input type="hidden" name="action" value="$action"/>
	<input name="nid" type="hidden" id="nid" value="$nid" />
	<input name="nav_img" type="hidden" id="nav_img" value="$nav_img" />
	<input name="nav_type" id="nav_type" type="hidden"  value="$nav_type" />
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr><th colspan="2">$lang[add_navigation]</th></tr>
		<tr >
			<td class="td_left1" width="60%">$lang[system_tab]</td>
			<td>
            $menu_sys
			</td>
		</tr>
		<tr >
			<td class="td_left1">$lang[title]<p class="cpsm">← $lang[enter_title].</p></td>
			<td><input type="text" name="title" id="title" value="$title" size="30" maxlength="20" class="text" /></td>
		</tr>
		<tr >
			<td class="td_left1">$lang[font_style]</td>
			<td>
			<select name="color" id="color">
             <option value="" selected>$lang[title_color]</option>
            $color_select
            </select>
			<input name="b" type="checkbox" id="b" value="1" $b_check>$lang[bold]
			<input name="i" type="checkbox" id="i" value="1" $i_check>$lang[italics]
			<input name="u" type="checkbox" id="u" value="1" $u_check>$lang[underline]
			</td>
		</tr>
		<tr >
			<td class="td_left1">$lang[picture]<p class="cpsm">↑ $lang[the_design].</p></td>
			<td><input type="file" name="nav_img" id="nav_img" value="$nav_img" size="30" class="text" /></td>
		</tr>
		<tr >
			<td class="td_left1">$lang[section_url]<p class="cpsm">←（$lang[increase]）</p></td>
			<td><input type="text" name="link" id="link" value="$link" size="30" maxlength="255" class="text" /></td>
		</tr>
		<tr >
			<td class="td_left1">$lang[text]<p class="cpsm">← （$lang[link_text]）</p></td>
			<td><input type="text" name="alt" id="alt" value="$alt" size="30" maxlength="20" class="text" /></td>
		</tr>
		<tr >
			<td class="td_left1">$lang[framework_objectives]</td>
			<td>
			<input type="radio" name="target" value="0" $self_check />$lang[the_window]
			<input type="radio" name="target" value="1" $blank_check/>$lang[new_window]
			</td>
		</tr>
		<tr >
			<td class="td_left1">$lang[type_columns]</td>
			<td>
			<input type="radio" name="pos" value="head" $head_check/>$lang[head_navigation]
			<input type="radio" name="pos" value="middle" $middle_check/>$lang[central_navigation]
			<input type="radio" name="pos" value="foot" $foot_check />$lang[bottom_navigation]
			<input type="radio" name="pos" value="help" $help_check/>$lang[help]
			</td>
		</tr>
		<tr >
			<td class="td_left1">$lang[sort_location]<p class="cpsm">← （$lang[display]）</p></td>
			<td><input type="text" name="view" id="view" value="$view" size="30" maxlength="20" class="text" /></td>
		</tr>
	</table>
	<div id="tfoot"><input type="submit" name="Submit" value="&nbsp;$lang[submit]&nbsp;" onclick="" /> <input type="reset" name="reset" value="&nbsp;$lang[reset]&nbsp;" /></div>
	</form>
</div>
<!--
EOT;
?>-->